Home /

Developer Resource Kit 5 Article

Using the Tooltip Lite Component

The Tooltip Lite Component, included with the Macromedia Flash UI Components Set 3, provides a small tooltip window activated when the user hovers over items within a Flash movie. This can help make Macromedia Flash applications more useable by providing context sensitive information and feedback to the user about the functionality of specific elements.

The component is very similar to the Tooltip Component, but is built to be extremely small and lightweight. Because of this, it is not as customizable as the Tooltip Component.

The Tooltip Lite Component will not work when attached to most components. It will however, work with the PushButton Component. If you need to attach a Tooltip Lite Component to another component, be sure to thoroughly test your application.

Tooltip component example

Sample files

Before you begin this tutorial, download the source file so that you can follow along in Macromedia Flash MX:

Using the Tooltip Lite component

Using the Tooltip Lite component requires that it be inserted into the Macromedia Flash application from the components panel and attached to the item that it will be associated with. A small icon will snap to the item to show that the Tooltip Lite Component is associated with it. The Tooltip Lite Component can attach to buttons, movie clips, and other components. It is intended to work with simple components, such as the PushButton Component, but may not work correctly when attached to more complex components. If you need to attach a Tooltip Lite Component to another component, be sure to thoroughly test your application.

Tooltip component example

Button component with Tooltip Lite component attached (icon appears in top left corner).

Customizing the Tooltip Lite component

There are a number of ways to control and customize the component.

The first is by using the Property inspector to specify the initial settings for the component. A list of the available properties and a short description of each setting is provided below:

  • Tip Text: The text to be displayed within the tooltip.
  • Face Color: Defines the color of the tooltip face.
  • Text Color: Defines the color of the text within the tooltip.
  • Tip Target: The instance name of the element that the tooltip is attached to.

You can also customize Tooltip Lite at runtime, by using the Tooltip Lite component's ActionScript API.

You can view a complete list of the API, as well as descriptions and examples, in the Macromedia Flash MX Reference Panel (select Window > Reference Panel) under the Flash UI Components Set 3 section.

Finally, the component can be customized through the use of FStyleFormat properties. The following properties are supported:

  • FStyleFormat.face
  • FStyleFormat.border
  • FStyleFormat.shadow
  • FStyleFormat.textAlign
  • FStyleFormat.textBold
  • FStyleFormat.textColor
  • FStyleFormat.textFont
  • FStyleFormat.textIndent
  • FStyleFormat.textItalic
  • FStyleFormat.textLeftMargin
  • FStyleFormat.textSize
  • FStyleFormat.textUnderline